| /illumos-gate/usr/src/lib/libipmp/common/ |
| H A D | ipmp.c | 46 ipmp_state_t *statep; local 48 statep = malloc(sizeof (ipmp_state_t)); 49 if (statep == NULL) 52 statep->st_fd = -1; 53 statep->st_snap = NULL; 54 statep->st_magic = IPMP_MAGIC; 56 *handlep = statep; 66 ipmp_state_t *statep = handle; local 72 assert(statep->st_magic == IPMP_MAGIC); 77 assert(statep [all...] |
| H A D | ipmp_admin.c | 43 ipmp_state_t *statep = (ipmp_state_t *)handle; local 53 assert(statep->st_fd == -1); 54 retval = ipmp_connect(&statep->st_fd); 58 retval = ipmp_write(statep->st_fd, req, reqsize); 62 retval = ipmp_read(statep->st_fd, &result, sizeof (result), &end); 70 (void) close(statep->st_fd); 71 statep->st_fd = -1;
|
| /illumos-gate/usr/src/lib/libuuid/common/ |
| H A D | etheraddr.c | 126 walker_arg_t *statep = arg; local 131 statep->wa_etheraddrlen = DLPI_PHYSADDR_MAX; 133 statep->wa_etheraddr, &(statep->wa_etheraddrlen)); 138 statep->wa_addrvalid = B_TRUE;
|
| /illumos-gate/usr/src/lib/libc/port/locale/ |
| H A D | fgetwc.c | 51 mbstate_t *statep; local 62 if ((statep = _getmbstate(fp)) == NULL) { 69 nconv = lct->lc_mbrtowc(&wc, &x, 1, statep);
|
| /illumos-gate/usr/src/lib/libcontract/common/ |
| H A D | device.c | 138 ct_dev_status_get_dev_state(ct_stathdl_t stathdl, uint_t *statep) argument 148 return (nvlist_lookup_uint32(info->nvl, CTDS_STATE, statep));
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/s1394/ |
| H A D | s1394.c | 66 s1394_state_t *statep; local 70 if (mdb_readvar(&statep, "s1394_statep") == -1) { 75 (uintptr_t)statep) == -1) {
|
| /illumos-gate/usr/src/uts/common/io/dld/ |
| H A D | dld_flow.c | 71 flowinfo_state_t *statep = arg; local 74 if (statep->fi_bufsize < sizeof (dld_flowinfo_t)) 84 if (copyout(fi, statep->fi_fl, sizeof (*fi)) != 0) { 89 statep->fi_nflows++; 90 statep->fi_bufsize -= sizeof (dld_flowinfo_t); 91 statep->fi_fl += sizeof (dld_flowinfo_t);
|
| /illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
| H A D | iser_cm.c | 47 static ibt_cm_status_t iser_ib_handle_cm_rep(iser_state_t *statep, 202 iser_ib_handle_cm_rep(iser_state_t *statep, ibt_cm_event_t *evp, argument
|
| /illumos-gate/usr/src/uts/intel/io/drm/ |
| H A D | radeon_drv.c | 152 drm_device_t *statep; local 167 statep = ddi_get_soft_state(radeon_statep, unit); 168 statep->dip = dip; 169 statep->driver = &radeon_driver; 174 handle = drm_supp_register(dip, statep); 179 statep->drm_handle = handle; 184 statep->drm_supported = DRM_UNSUPPORT; 185 if (drm_probe(statep, radeon_pciidlist) != DDI_SUCCESS) { 190 statep->drm_supported = DRM_SUPPORT; 193 if (drm_attach(statep) ! 210 drm_device_t *statep; local 233 drm_device_t *statep; local [all...] |
| /illumos-gate/usr/src/uts/sun4/io/ |
| H A D | tod.c | 45 ((struct tod_softc *)ddi_get_soft_state(statep, (minor))) 91 static void *statep; variable 112 if (e = ddi_soft_state_init(&statep, sizeof (struct tod_softc), 1)) { 117 ddi_soft_state_fini(&statep); 133 ddi_soft_state_fini(&statep); 201 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) 226 ddi_soft_state_free(statep, inst); 249 ddi_soft_state_free(statep, inst);
|
| /illumos-gate/usr/src/uts/sun4u/mpxu/io/ |
| H A D | tsalarm.c | 48 ((struct tsalarm_softc *)ddi_get_soft_state(statep, (minor))) 101 static void *statep; variable 123 if (e = ddi_soft_state_init(&statep, 129 ddi_soft_state_fini(&statep); 145 ddi_soft_state_fini(&statep); 202 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) 231 ddi_soft_state_free(statep, inst); 256 ddi_soft_state_free(statep, inst);
|
| /illumos-gate/usr/src/uts/sun4u/opl/io/oplpanel/ |
| H A D | oplpanel.c | 177 struct panel_state *statep = NULL; local 199 if ((statep = (struct panel_state *) 207 panel_ddi_put8(statep->panel_regs_handle, statep->panelregs, 208 statep->panelregs_state); 225 if ((statep = (struct panel_state *) 233 statep->dip = dip; 236 if (ddi_regs_map_setup(dip, 0, (caddr_t *)&statep->panelregs, 238 &access_attr, &statep->panel_regs_handle) != DDI_SUCCESS) { 245 (void) ddi_get_iblock_cookie(dip, 0, &statep 278 struct panel_state *statep; local 326 struct panel_state *statep; local 358 struct panel_state *statep = (struct panel_state *)arg; local [all...] |
| /illumos-gate/usr/src/uts/intel/io/ |
| H A D | pit_beep.c | 217 pit_beep_state_t *statep; local 225 if ((statep = ddi_get_soft_state(pit_beep_statep, 231 *result = (void *)statep->dip;
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/usba/ |
| H A D | usb.c | 487 mdb_warn("dip and statep unobtainable\n"); 512 uintptr_t statep = NULL; local 585 * Given the dip, find the associated statep. The 592 &statep) == -1) { 598 mdb_printf("%-?p\n", statep);
|
| /illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
| H A D | smb_dev.c | 82 static void *statep; variable 168 (void) ddi_soft_state_init(&statep, sizeof (smb_dev_t), 1); 199 ddi_soft_state_fini(&statep); 240 ddi_soft_state_fini(&statep); 326 sdp = ddi_get_soft_state(statep, getminor(dev)); 455 if (ddi_get_soft_state(statep, m) == NULL) { 467 if (ddi_soft_state_zalloc(statep, m) == DDI_FAILURE) { 471 if ((sdp = ddi_get_soft_state(statep, m)) == NULL) { 501 sdp = ddi_get_soft_state(statep, inst); 511 ddi_soft_state_free(statep, ins [all...] |
| /illumos-gate/usr/src/uts/common/io/drm/ |
| H A D | drm_pci.c | 85 pci_get_irq(drm_device_t *statep) argument 92 statep->dip, DDI_PROP_DONTPASS, "interrupts", -1); 95 irq = drm_supp_get_irq(statep->drm_handle); 102 pci_get_vendor(drm_device_t *statep) argument 107 statep->dip, DDI_PROP_DONTPASS, "vendor-id", 0); 113 pci_get_device(drm_device_t *statep) argument 118 statep->dip, DDI_PROP_DONTPASS, "device-id", 0);
|
| /illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
| H A D | amd_iommu.c | 218 struct amd_iommu_state *statep; local 226 statep = ddi_get_soft_state(amd_iommu_statep, 228 if (statep) { 229 *result = statep->aioms_devi; 247 struct amd_iommu_state *statep; local 261 statep = ddi_get_soft_state(amd_iommu_statep, instance); 262 if (statep == NULL) { 279 statep->aioms_devi = dip; 280 statep->aioms_instance = instance; 281 statep 317 struct amd_iommu_state *statep; local 343 struct amd_iommu_state *statep; local 379 struct amd_iommu_state *statep; local 415 struct amd_iommu_state *statep; local 452 struct amd_iommu_state *statep; local [all...] |
| /illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
| H A D | rdsib_buf.c | 113 rds_free_recv_caches(rds_state_t *statep) argument 140 hcap = statep->rds_hcalistp; 171 rds_init_recv_caches(rds_state_t *statep) argument 242 rw_enter(&statep->rds_hca_lock, RW_WRITER); 244 hcap = statep->rds_hcalistp; 255 hcap = statep->rds_hcalistp; 272 rw_exit(&statep->rds_hca_lock); 283 rw_exit(&statep->rds_hca_lock);
|
| H A D | rdsib_cm.c | 98 rds_handle_cm_req(rds_state_t *statep, ibt_cm_event_t *evp, argument 187 rw_enter(&statep->rds_sessionlock, RW_READER); 188 sp = rds_session_lkup(statep, ipcm_info.SRCIP, rgid.gid_guid); 189 rw_exit(&statep->rds_sessionlock); 197 sp = rds_session_create(statep, ipcm_info.DSTIP, 201 rw_enter(&statep->rds_sessionlock, RW_READER); 202 sp = rds_session_lkup(statep, ipcm_info.SRCIP, 204 rw_exit(&statep->rds_sessionlock); 789 rds_bind_service(rds_state_t *statep) argument 796 RDS_DPRINTF2("rds_bind_service", "Enter: 0x%p", statep); [all...] |
| /illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/ |
| H A D | usbser_keyspan.c | 354 keyspan_pre_attach(dev_info_t *dip, ddi_attach_cmd_t cmd, void *statep) argument 421 if (ddi_soft_state_zalloc(statep, instance) == DDI_SUCCESS) { 422 kbp = ddi_get_soft_state(statep, instance); 447 ddi_soft_state_free(statep, instance); 456 keyspan_pre_detach(dev_info_t *dip, ddi_detach_cmd_t cmd, void *statep) argument 461 kbp = ddi_get_soft_state(statep, instance); 477 ddi_soft_state_free(statep, instance);
|
| /illumos-gate/usr/src/uts/sun4u/snowbird/io/todds1307/ |
| H A D | todds1307.c | 235 static ds1307_state_t *statep = NULL; local 261 statep = ddi_get_soft_state(ds1307_statep, instance); 262 if (statep == NULL) { 266 statep->dip = dip; 268 if (i2c_client_register(dip, &statep->ds1307_i2c_hdl) != I2C_SUCCESS) { 276 (void) i2c_transfer_alloc(statep->ds1307_i2c_hdl, 284 if ((i2c_transfer(statep->ds1307_i2c_hdl, i2c_tp)) != I2C_SUCCESS) { 285 (void) i2c_transfer_free(statep->ds1307_i2c_hdl, i2c_tp); 293 (void) i2c_transfer_free(statep->ds1307_i2c_hdl, i2c_tp); 296 (void) i2c_transfer_alloc(statep 484 static ds1307_state_t *statep = NULL; local 576 ds1307_state_t *statep = NULL; local [all...] |
| /illumos-gate/usr/src/uts/sun4u/io/ |
| H A D | epic.c | 113 #define getsoftc(inst) ((struct epic_softc *)ddi_get_soft_state(statep, \ 117 static void *statep; variable 137 if ((e = ddi_soft_state_init(&statep, 143 ddi_soft_state_fini(&statep); 156 ddi_soft_state_fini(&statep); 221 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) { 263 ddi_soft_state_free(statep, inst); 287 ddi_soft_state_free(statep, inst);
|
| H A D | gpio_87317.c | 72 ((struct gpio_softc *)ddi_get_soft_state(statep, (minor))) 119 static void *statep; variable 138 if (e = ddi_soft_state_init(&statep, sizeof (struct gpio_softc), 1)) { 142 ddi_soft_state_fini(&statep); 157 ddi_soft_state_fini(&statep); 215 if (ddi_soft_state_zalloc(statep, instance) != DDI_SUCCESS) 283 ddi_soft_state_free(statep, instance); 304 ddi_soft_state_free(statep, instance);
|
| H A D | pic16f747.c | 117 #define getsoftc(inst) ((struct pic_softc *)ddi_get_soft_state(statep, (inst))) 120 static void *statep; variable 140 if (e = ddi_soft_state_init(&statep, sizeof (struct pic_softc), 146 ddi_soft_state_fini(&statep); 159 ddi_soft_state_fini(&statep); 231 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) { 289 ddi_soft_state_free(statep, inst); 311 ddi_soft_state_free(statep, inst);
|
| H A D | todds1337.c | 232 static ds1337_state_t *statep = NULL; local 261 statep = ddi_get_soft_state(ds1337_statep, instance); 262 if (statep == NULL) { 269 statep->dip = dip; 271 if (i2c_client_register(dip, &statep->ds1337_i2c_hdl) != I2C_SUCCESS) { 281 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl, 289 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) { 290 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp); 291 i2c_client_unregister(statep->ds1337_i2c_hdl); 301 (void) i2c_transfer_free(statep 479 ds1337_state_t *statep = NULL; local 603 ds1337_state_t *statep = NULL; local 735 static ds1337_state_t *statep = NULL; local 825 ds1337_state_t *statep = NULL; local [all...] |