Home
last modified time | relevance | path

Searched refs:statep (Results 1 – 25 of 103) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_sm.c422 ibcm_state_data_t *statep,
425 static void ibcm_timeout_client_cb(ibcm_state_data_t *statep);
429 static void ibcm_process_dreq_timeout(ibcm_state_data_t *statep);
434 static void ibcm_post_stored_apr_mad(ibcm_state_data_t *statep,
437 static ibcm_status_t ibcm_set_qp_from_apr(ibcm_state_data_t *statep,
458 static void ibcm_copy_addl_rej(ibcm_state_data_t *statep,
462 static void ibcm_return_open_data(ibcm_state_data_t *statep,
957 ibcm_state_data_t *statep; in ibcm_process_req_msg() local
984 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*statep)) in ibcm_process_req_msg()
996 statep = kmem_zalloc(sizeof (*statep), KM_SLEEP); in ibcm_process_req_msg()
[all …]
H A Dibcm_ti.c57 ibcm_state_data_t *statep, ibt_execution_mode_t mode);
151 ibcm_state_data_t *statep; in ibt_open_rc_channel() local
267 IBCM_GET_CHAN_PRIVATE(channel, statep); in ibt_open_rc_channel()
268 if (statep != NULL) { in ibt_open_rc_channel()
564 statep = kmem_zalloc(sizeof (ibcm_state_data_t), KM_SLEEP); in ibt_open_rc_channel()
567 hcap, &statep); in ibt_open_rc_channel()
579 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*statep)) in ibt_open_rc_channel()
581 statep->timerid = 0; in ibt_open_rc_channel()
582 statep->local_hca_guid = hca_guid; in ibt_open_rc_channel()
583 statep->local_qpn = local_qpn; in ibt_open_rc_channel()
[all …]
H A Dibcm_utils.c48 static void ibcm_delete_state_from_avl(ibcm_state_data_t *statep);
49 static void ibcm_init_conn_trace(ibcm_state_data_t *statep);
50 static void ibcm_fini_conn_trace(ibcm_state_data_t *statep);
51 static void ibcm_dump_conn_trbuf(void *statep, char *line_prefix,
254 ibcm_state_data_t *statep = (ibcm_state_data_t *)p2; in ibcm_active_node_compare() local
257 "comid: 0x%x, statep: 0x%p", *local_comid, statep); in ibcm_active_node_compare()
259 if (*local_comid > statep->local_comid) { in ibcm_active_node_compare()
261 } else if (*local_comid < statep->local_comid) { in ibcm_active_node_compare()
285 ibcm_state_data_t *statep = (ibcm_state_data_t *)p2; in ibcm_passive_node_compare() local
289 "statep: 0x%p, p1: 0x%p", statep, p1); in ibcm_passive_node_compare()
[all …]
H A Dibcm_impl.c1421 ibcm_open_done(ibcm_state_data_t *statep) in ibcm_open_done() argument
1426 ASSERT(MUTEX_HELD(&statep->state_mutex)); in ibcm_open_done()
1427 if (statep->open_flow == 1) { in ibcm_open_done()
1428 statep->open_flow = 0; in ibcm_open_done()
1430 if (statep->open_link == NULL) { in ibcm_open_done()
1436 while (*linkp != statep) in ibcm_open_done()
1438 *linkp = statep->open_link; in ibcm_open_done()
1439 statep->open_link = NULL; in ibcm_open_done()
1445 if (ibcm_open.tail == statep) { in ibcm_open_done()
1468 ibcm_open_start(ibcm_state_data_t *statep) in ibcm_open_start() argument
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/
H A Daudiohd.c202 audiohd_set_chipset_info(audiohd_state_t *statep) in audiohd_set_chipset_info() argument
208 devid = pci_config_get16(statep->hda_pci_handle, PCI_CONF_VENID); in audiohd_set_chipset_info()
210 devid |= pci_config_get16(statep->hda_pci_handle, PCI_CONF_DEVID); in audiohd_set_chipset_info()
211 statep->devid = devid; in audiohd_set_chipset_info()
299 audio_dev_set_description(statep->adev, name); in audiohd_set_chipset_info()
300 audio_dev_set_version(statep->adev, vers); in audiohd_set_chipset_info()
306 audiohd_state_t *statep; in audiohd_attach() local
315 statep = ddi_get_driver_private(dip); in audiohd_attach()
316 ASSERT(statep != NULL); in audiohd_attach()
317 return (audiohd_resume(statep)); in audiohd_attach()
[all …]
H A Daudiohd.h666 audiohd_state_t *statep; member
696 audiohd_state_t *statep; member
724 audiohd_state_t *statep; member
788 audiohd_state_t *statep; member
882 ddi_get8(statep->hda_reg_handle, \
883 (void *)((char *)statep->hda_reg_base + (reg)))
886 ddi_get16(statep->hda_reg_handle, \
887 (void *)((char *)statep->hda_reg_base + (reg)))
890 ddi_get32(statep->hda_reg_handle, \
891 (void *)((char *)statep->hda_reg_base + (reg)))
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audioixp/
H A Daudioixp.c364 audioixp_state_t *statep; in audioixp_quiesce() local
366 statep = ddi_get_driver_private(dip); in audioixp_quiesce()
367 ASSERT(statep != NULL); in audioixp_quiesce()
381 audioixp_state_t *statep; in audioixp_suspend() local
383 statep = ddi_get_driver_private(dip); in audioixp_suspend()
384 ASSERT(statep != NULL); in audioixp_suspend()
386 audio_dev_suspend(statep->adev); in audioixp_suspend()
394 audioixp_state_t *statep; in audioixp_resume() local
396 statep = ddi_get_driver_private(dip); in audioixp_resume()
397 ASSERT(statep != NULL); in audioixp_resume()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audio810/
H A Daudio810.c382 audio810_state_t *statep; in audio810_ddi_quiesce() local
384 if ((statep = ddi_get_driver_private(dip)) == NULL) in audio810_ddi_quiesce()
387 audio810_stop_dma(statep); in audio810_ddi_quiesce()
452 audio810_state_t *statep = port->statep; in audio810_stop() local
476 audio810_state_t *statep = port->statep; in audio810_start() local
484 audio810_set_channels(statep); in audio810_start()
486 if (statep->quirk == QUIRK_SIS7012) { in audio810_start()
592 audio810_state_t *statep = port->statep; in audio810_count() local
608 if (statep->quirk != QUIRK_SIS7012) in audio810_count()
663 audio810_state_t *statep = port->statep; in audio810_playahead() local
[all …]
H A Daudio810.h149 struct audio810_state *statep; member
220 ddi_get8(statep->bm_regs_handle, \
221 (void *)((char *)statep->bm_regs_base + (reg)))
224 ddi_get16(statep->bm_regs_handle, \
225 (void *)((char *)statep->bm_regs_base + (reg)))
228 ddi_get32(statep->bm_regs_handle, \
229 (void *)((char *)statep->bm_regs_base + (reg)))
232 ddi_put8(statep->bm_regs_handle, \
233 (void *)((char *)statep->bm_regs_base + (reg)), (val))
236 ddi_put16(statep->bm_regs_handle, \
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audio1575/
H A Daudio1575.c358 audio1575_state_t *statep; in audio1575_ddi_quiesce() local
360 if ((statep = ddi_get_driver_private(dip)) == NULL) in audio1575_ddi_quiesce()
363 audio1575_dma_stop(statep, B_TRUE); in audio1575_ddi_quiesce()
429 audio1575_state_t *statep = port->statep; in audio1575_stop() local
431 mutex_enter(&statep->lock); in audio1575_stop()
437 mutex_exit(&statep->lock); in audio1575_stop()
456 audio1575_state_t *statep = port->statep; in audio1575_start() local
458 mutex_enter(&statep->lock); in audio1575_start()
517 mutex_exit(&statep->lock); in audio1575_start()
599 audio1575_state_t *statep = port->statep; in audio1575_count() local
[all …]
H A Daudio1575.h349 struct audio1575_state *statep; member
396 ddi_get8(statep->regsh, (void *)(statep->regsp + (reg)))
399 ddi_get16(statep->regsh, (void *)(statep->regsp + (reg)))
402 ddi_get32(statep->regsh, (void *)(statep->regsp + (reg)))
405 ddi_put8(statep->regsh, (void *)(statep->regsp + (reg)), (val))
408 ddi_put16(statep->regsh, (void *)(statep->regsp + (reg)), (val))
411 ddi_put32(statep->regsh, (void *)(statep->regsp + (reg)), (val))
/illumos-gate/usr/src/uts/sun4u/opl/io/oplpanel/
H A Doplpanel.c177 struct panel_state *statep = NULL; in panel_attach() local
199 if ((statep = (struct panel_state *) in panel_attach()
207 panel_ddi_put8(statep->panel_regs_handle, statep->panelregs, in panel_attach()
208 statep->panelregs_state); in panel_attach()
225 if ((statep = (struct panel_state *) in panel_attach()
233 statep->dip = dip; in panel_attach()
236 if (ddi_regs_map_setup(dip, 0, (caddr_t *)&statep->panelregs, in panel_attach()
238 &access_attr, &statep->panel_regs_handle) != DDI_SUCCESS) { in panel_attach()
245 (void) ddi_get_iblock_cookie(dip, 0, &statep->iblock_cookie); in panel_attach()
246 if (ddi_add_intr(dip, 0, &statep->iblock_cookie, 0, &panel_intr, in panel_attach()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dtodds1337.c232 static ds1337_state_t *statep = NULL; in todds1337_attach() local
261 statep = ddi_get_soft_state(ds1337_statep, instance); in todds1337_attach()
262 if (statep == NULL) { in todds1337_attach()
269 statep->dip = dip; in todds1337_attach()
271 if (i2c_client_register(dip, &statep->ds1337_i2c_hdl) != I2C_SUCCESS) { in todds1337_attach()
281 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl, in todds1337_attach()
289 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) { in todds1337_attach()
290 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp); in todds1337_attach()
291 i2c_client_unregister(statep->ds1337_i2c_hdl); in todds1337_attach()
301 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp); in todds1337_attach()
[all …]
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp.c46 ipmp_state_t *statep; in ipmp_open() local
48 statep = malloc(sizeof (ipmp_state_t)); in ipmp_open()
49 if (statep == NULL) in ipmp_open()
52 statep->st_fd = -1; in ipmp_open()
53 statep->st_snap = NULL; in ipmp_open()
54 statep->st_magic = IPMP_MAGIC; in ipmp_open()
56 *handlep = statep; in ipmp_open()
66 ipmp_state_t *statep = handle; in ipmp_close() local
72 assert(statep->st_magic == IPMP_MAGIC); in ipmp_close()
77 assert(statep->st_fd == -1); in ipmp_close()
[all …]
H A Dipmp_query.c69 ipmp_sendquery(ipmp_state_t *statep, ipmp_infotype_t type, const char *name, in ipmp_sendquery() argument
106 assert(statep->st_fd == -1); in ipmp_sendquery()
107 retval = ipmp_connect(&statep->st_fd); in ipmp_sendquery()
111 retval = ipmp_write(statep->st_fd, &query, sizeof (query)); in ipmp_sendquery()
113 return (ipmp_querydone(statep, retval)); in ipmp_sendquery()
115 retval = ipmp_read(statep->st_fd, &result, sizeof (result), endtp); in ipmp_sendquery()
117 return (ipmp_querydone(statep, retval)); in ipmp_sendquery()
120 return (ipmp_querydone(statep, result.me_mpathd_error)); in ipmp_sendquery()
131 ipmp_readinfo(ipmp_state_t *statep, ipmp_infotype_t infotype, void **infop, in ipmp_readinfo() argument
138 retval = ipmp_readtlv(statep->st_fd, &type, &len, infop, endtp); in ipmp_readinfo()
[all …]
H A Dipmp_admin.c43 ipmp_state_t *statep = (ipmp_state_t *)handle; in ipmp_command() local
53 assert(statep->st_fd == -1); in ipmp_command()
54 retval = ipmp_connect(&statep->st_fd); in ipmp_command()
58 retval = ipmp_write(statep->st_fd, req, reqsize); in ipmp_command()
62 retval = ipmp_read(statep->st_fd, &result, sizeof (result), &end); in ipmp_command()
70 (void) close(statep->st_fd); in ipmp_command()
71 statep->st_fd = -1; in ipmp_command()
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu.c218 struct amd_iommu_state *statep; in amd_iommu_getinfo() local
226 statep = ddi_get_soft_state(amd_iommu_statep, in amd_iommu_getinfo()
228 if (statep) { in amd_iommu_getinfo()
229 *result = statep->aioms_devi; in amd_iommu_getinfo()
247 struct amd_iommu_state *statep; in amd_iommu_attach() local
261 statep = ddi_get_soft_state(amd_iommu_statep, instance); in amd_iommu_attach()
262 if (statep == NULL) { in amd_iommu_attach()
279 statep->aioms_devi = dip; in amd_iommu_attach()
280 statep->aioms_instance = instance; in amd_iommu_attach()
281 statep->aioms_iommu_start = NULL; in amd_iommu_attach()
[all …]
/illumos-gate/usr/src/cmd/flowadm/
H A Dflowadm.c543 show_flow_state_t *statep = arg; in show_flow() local
551 status = print_flow(statep, attr, &fbuf); in show_flow()
556 ofmt_print(statep->fs_ofmt, (void *)&fbuf); in show_flow()
559 statep->fs_status = status; in show_flow()
965 print_flowprop(const char *flowname, show_flowprop_state_t *statep, in print_flowprop() argument
973 char **propvals = statep->fs_propvals; in print_flowprop()
982 statep->fs_persist) { in print_flowprop()
986 statep->fs_status = status; in print_flowprop()
987 statep->fs_retstatus = status; in print_flowprop()
991 statep->fs_persist) { in print_flowprop()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ac/
H A Dusb_ac.c4498 usb_restore_engine(usb_ac_state_t *statep) in usb_restore_engine() argument
4505 mutex_enter(&statep->usb_ac_mutex); in usb_restore_engine()
4506 engp = &statep->engines[i]; in usb_restore_engine()
4507 mutex_exit(&statep->usb_ac_mutex); in usb_restore_engine()
4511 if (usb_ac_set_format(statep, engp) != USB_SUCCESS) { in usb_restore_engine()
4513 statep->usb_ac_log_handle, in usb_restore_engine()
4523 (void) usb_ac_ctrl_restore(statep); in usb_restore_engine()
4585 usb_ac_rem_eng(usb_ac_state_t *statep, usb_audio_eng_t *engp) in usb_ac_rem_eng() argument
4587 if (statep->usb_ac_audio_dev == NULL || engp->af_engp == NULL) in usb_ac_rem_eng()
4590 audio_dev_remove_engine(statep->usb_ac_audio_dev, engp->af_engp); in usb_ac_rem_eng()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibcm/
H A Dibcm_impl.h557 extern void ibcm_open_enqueue(ibcm_state_data_t *statep);
558 extern void ibcm_open_done(ibcm_state_data_t *statep);
559 extern void ibcm_close_enqueue(ibcm_state_data_t *statep);
560 extern void ibcm_close_done(ibcm_state_data_t *statep, int send_done);
567 extern void ibcm_close_start(ibcm_state_data_t *statep);
1037 ibcm_state_data_t *statep; member
1227 IBCM_OUT_MSGP(statep->stored_msg))->rej_private_data[0])
1610 ibcm_status_t ibcm_cep_state_req(ibcm_state_data_t *statep,
1615 ibcm_status_t ibcm_process_cep_req_cm_hdlr(ibcm_state_data_t *statep,
1622 void ibcm_handle_cep_req_response(ibcm_state_data_t *statep,
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dsimba.c883 struct simba_cfg_state *statep; in simba_save_config_regs() local
900 for (statep = simba_p->simba_config_state_p, in simba_save_config_regs()
934 statep->dip = dip; in simba_save_config_regs()
935 statep->command = pci_config_get16(ch, PCI_CONF_COMM); in simba_save_config_regs()
936 statep->header_type = pci_config_get8(ch, PCI_CONF_HEADER); in simba_save_config_regs()
937 if ((statep->header_type & PCI_HEADER_TYPE_M) == PCI_HEADER_ONE) in simba_save_config_regs()
938 statep->bridge_control = in simba_save_config_regs()
940 statep->cache_line_size = in simba_save_config_regs()
942 statep->latency_timer = in simba_save_config_regs()
944 if ((statep->header_type & PCI_HEADER_TYPE_M) == PCI_HEADER_ONE) in simba_save_config_regs()
[all …]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dta.c486 struct state *statep = state; variable
492 statep->ssize = size; in t_push()
493 statep->sfont = font; in t_push()
494 statep->shorig = horig; in t_push()
495 statep->svorig = vorig; in t_push()
496 statep->shpos = hpos; in t_push()
497 statep->svpos = vpos; in t_push()
501 if (statep++ >= state+MAXSTATE) in t_push()
511 if (--statep < state) in t_pop()
513 size = statep->ssize; in t_pop()
[all …]
/illumos-gate/usr/src/uts/common/io/dld/
H A Ddld_flow.c71 flowinfo_state_t *statep = arg; in dld_walk_flow_cb() local
74 if (statep->fi_bufsize < sizeof (dld_flowinfo_t)) in dld_walk_flow_cb()
84 if (copyout(fi, statep->fi_fl, sizeof (*fi)) != 0) { in dld_walk_flow_cb()
89 statep->fi_nflows++; in dld_walk_flow_cb()
90 statep->fi_bufsize -= sizeof (dld_flowinfo_t); in dld_walk_flow_cb()
91 statep->fi_fl += sizeof (dld_flowinfo_t); in dld_walk_flow_cb()
/illumos-gate/usr/src/common/definit/
H A Ddefinit.c45 definit_open(const char *file, void **statep) in definit_open() argument
61 *statep = state; in definit_open()
77 definit_close(void *statep) in definit_close() argument
79 definit_t *state = statep; in definit_close()
166 definit_token(void *statep) in definit_token() argument
168 definit_t *state = statep; in definit_token()
/illumos-gate/usr/src/lib/libuuid/common/
H A Detheraddr.c124 walker_arg_t *statep = arg; in get_etheraddr() local
129 statep->wa_etheraddrlen = DLPI_PHYSADDR_MAX; in get_etheraddr()
131 statep->wa_etheraddr, &(statep->wa_etheraddrlen)); in get_etheraddr()
136 statep->wa_addrvalid = B_TRUE; in get_etheraddr()

12345