/titanic_50/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vgatext.c | 151 #define GFXP_IS_CONSOLE(softc) ((softc)->flags & GFXP_FLAG_CONSOLE) argument 177 static void vgatext_save_text(struct vgatext_softc *softc); 178 static void vgatext_restore_textmode(struct vgatext_softc *softc); 179 static int vgatext_suspend(struct vgatext_softc *softc); 180 static void vgatext_resume(struct vgatext_softc *softc); 186 static int vgatext_kdsetmode(struct vgatext_softc *softc, int mode); 187 static void vgatext_setfont(struct vgatext_softc *softc); 188 static void vgatext_get_cursor(struct vgatext_softc *softc, 190 static void vgatext_set_cursor(struct vgatext_softc *softc, int row, int col); 191 static void vgatext_hide_cursor(struct vgatext_softc *softc); [all …]
|
/titanic_50/usr/src/uts/intel/io/vgatext/ |
H A D | vgatext.c | 171 #define VGATEXT_IS_CONSOLE(softc) ((softc)->flags & VGATEXT_FLAG_CONSOLE) argument 191 static int vgatext_kdsetmode(struct vgatext_softc *softc, int mode); 192 static void vgatext_setfont(struct vgatext_softc *softc); 193 static void vgatext_get_cursor(struct vgatext_softc *softc, 195 static void vgatext_set_cursor(struct vgatext_softc *softc, int row, int col); 196 static void vgatext_hide_cursor(struct vgatext_softc *softc); 197 static void vgatext_save_colormap(struct vgatext_softc *softc); 198 static void vgatext_restore_colormap(struct vgatext_softc *softc); 356 vgatext_check_for_console(dev_info_t *devi, struct vgatext_softc *softc, in vgatext_check_for_console() argument 379 softc->flags |= VGATEXT_FLAG_CONSOLE; in vgatext_check_for_console() [all …]
|
/titanic_50/usr/src/uts/sun4u/io/ |
H A D | gpio_87317.c | 176 struct gpio_softc *softc; in gpio_getinfo() local 180 if ((softc = getsoftc(instance)) == NULL) { in gpio_getinfo() 184 *result = (void *)softc->gp_dip; in gpio_getinfo() 204 struct gpio_softc *softc = NULL; in gpio_attach() local 217 softc = getsoftc(instance); in gpio_attach() 218 softc->gp_dip = dip; in gpio_attach() 219 softc->gp_state = 0; in gpio_attach() 220 mutex_init(&softc->gp_mutex, NULL, MUTEX_DRIVER, NULL); in gpio_attach() 227 if (ddi_regs_map_setup(dip, 0, (caddr_t *)&softc->gp_regs, 0, 0, in gpio_attach() 228 &dev_attr, &softc->gp_handle) != DDI_SUCCESS) in gpio_attach() [all …]
|
H A D | pic16f747.c | 176 struct pic_softc *softc; in pic_getinfo() local 182 if ((softc = getsoftc(inst)) == NULL) { in pic_getinfo() 186 *result = (void *)softc->dip; in pic_getinfo() 205 struct pic_softc *softc = NULL; in pic_attach() local 238 softc = getsoftc(inst); in pic_attach() 239 softc->dip = dip; in pic_attach() 240 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in pic_attach() 252 res = ddi_regs_map_setup(dip, 0, (caddr_t *)&softc->cmd_reg, in pic_attach() 253 0, 0x42, &dev_attr, &softc->cmd_handle); in pic_attach() 288 if (softc) in pic_attach() [all …]
|
H A D | epic.c | 173 struct epic_softc *softc; in epic_getinfo() local 179 if ((softc = getsoftc(inst)) == NULL) { in epic_getinfo() 183 *result = (void *)softc->dip; in epic_getinfo() 201 struct epic_softc *softc = NULL; in epic_attach() local 228 if ((softc = getsoftc(inst)) == NULL) { in epic_attach() 231 softc->dip = dip; in epic_attach() 232 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in epic_attach() 239 res = ddi_regs_map_setup(dip, 0, (caddr_t *)&softc->cmd_reg, in epic_attach() 241 &softc->cmd_handle); in epic_attach() 262 if (softc) in epic_attach() [all …]
|
H A D | mem_cache.c | 201 struct mem_cache_softc *softc; in mem_cache_getinfo() local 207 if ((softc = getsoftc(inst)) == NULL) { in mem_cache_getinfo() 211 *result = (void *)softc->dip; in mem_cache_getinfo() 229 struct mem_cache_softc *softc = NULL; in mem_cache_attach() local 258 softc = getsoftc(inst); in mem_cache_attach() 259 softc->dip = dip; in mem_cache_attach() 260 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in mem_cache_attach() 277 if (softc) in mem_cache_attach() 289 struct mem_cache_softc *softc; in mem_cache_detach() local 294 if ((softc = getsoftc(inst)) == NULL) in mem_cache_detach() [all …]
|
/titanic_50/usr/src/uts/sun4/io/ |
H A D | tod.c | 152 struct tod_softc *softc; in tod_getinfo() local 157 if ((softc = getsoftc(inst)) == NULL) { in tod_getinfo() 161 *result = (void *)softc->dip; in tod_getinfo() 181 struct tod_softc *softc = NULL; in tod_attach() local 204 softc = getsoftc(inst); in tod_attach() 205 softc->dip = dip; in tod_attach() 206 softc->cpr_stage = ~TOD_SUSPENDED; in tod_attach() 207 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in tod_attach() 213 softc = getsoftc(inst); in tod_attach() 214 mutex_enter(&softc->mutex); in tod_attach() [all …]
|
/titanic_50/usr/src/uts/sun4v/ontario/io/ |
H A D | tsalarm.c | 353 struct tsalarm_softc *softc; in tsalarm_getinfo() local 358 if ((softc = getsoftc(inst)) == NULL) { in tsalarm_getinfo() 362 *result = (void *)softc->dip; in tsalarm_getinfo() 382 struct tsalarm_softc *softc = NULL; in tsalarm_attach() local 396 softc = getsoftc(inst); in tsalarm_attach() 397 softc->dip = dip; in tsalarm_attach() 398 softc->mtu_size = PCP_DEF_MTU_SZ; in tsalarm_attach() 399 softc->msg_xid = 0; in tsalarm_attach() 400 softc->read_area = NULL; in tsalarm_attach() 401 softc->read_head = NULL; in tsalarm_attach() [all …]
|
/titanic_50/usr/src/uts/common/crypto/io/ |
H A D | dprov.c | 1617 #define DPROV_SOFTC_FROM_CTX(ctx, softc, instance) { \ argument 1618 (softc) = (dprov_state_t *)(ctx)->cc_provider; \ 1619 (instance) = ddi_get_instance((softc)->ds_dip); \ 1623 #define DPROV_SOFTC_FROM_REQ(req, softc, instance) { \ argument 1624 (softc) = (req)->dr_softc; \ 1625 (instance) = ddi_get_instance((softc)->ds_dip); \ 1731 dprov_state_t *softc; in dprov_getinfo() local 1738 softc = ddi_get_soft_state(statep, instance); in dprov_getinfo() 1739 *result = softc->ds_dip; in dprov_getinfo() 1753 dprov_state_t *softc; in dprov_attach() local [all …]
|
H A D | dca.c | 418 #define DCA_SOFTC_FROM_CTX(ctx, softc, instance) { \ argument 419 (softc) = (dca_t *)(ctx)->cc_provider; \ 420 (instance) = ddi_get_instance((softc)->dca_dip); \ 3696 dca_t *softc; in dca_encrypt_init() local 3701 DCA_SOFTC_FROM_CTX(ctx, softc, instance); in dca_encrypt_init() 3702 DBG(softc, DENTRY, "dca_encrypt_init: started"); in dca_encrypt_init() 3724 DBG(softc, DENTRY, "dca_encrypt_init: done, err = 0x%x", error); in dca_encrypt_init() 3727 dca_enlist2(&softc->dca_ctx_list, ctx->cc_provider_private, in dca_encrypt_init() 3728 &softc->dca_ctx_list_lock); in dca_encrypt_init() 3739 dca_t *softc; in dca_encrypt() local [all …]
|
/titanic_50/usr/src/uts/sun4u/mpxu/io/ |
H A D | tsalarm.c | 164 struct tsalarm_softc *softc; in tsalarm_getinfo() local 169 if ((softc = getsoftc(inst)) == NULL) { in tsalarm_getinfo() 173 *result = (void *)softc->dip; in tsalarm_getinfo() 193 struct tsalarm_softc *softc = NULL; in tsalarm_attach() local 205 softc = getsoftc(inst); in tsalarm_attach() 206 softc->dip = dip; in tsalarm_attach() 207 mutex_init(&softc->mutex, NULL, MUTEX_DRIVER, NULL); in tsalarm_attach() 229 if (softc) { in tsalarm_attach() 230 mutex_destroy(&softc->mutex); in tsalarm_attach() 243 struct tsalarm_softc *softc; in tsalarm_detach() local [all …]
|
/titanic_50/usr/src/uts/intel/io/agpmaster/ |
H A D | agpmaster.c | 417 int *rval, agp_master_softc_t *softc) in agpmaster_ioctl() argument 429 CONFIRM(softc); in agpmaster_ioctl() 438 if (ddi_copyout(&softc->agpm_dev_type, in agpmaster_ioctl() 448 CONFIRM(softc->agpm_dev_type == DEVICE_IS_AGP); in agpmaster_ioctl() 449 CONFIRM(softc->agpm_data.agpm_acaptr); in agpmaster_ioctl() 455 pci_config_put32(softc->agpm_acc_hdl, in agpmaster_ioctl() 456 softc->agpm_data.agpm_acaptr + AGP_CONF_COMMAND, in agpmaster_ioctl() 466 CONFIRM(softc->agpm_dev_type == DEVICE_IS_AGP); in agpmaster_ioctl() 467 CONFIRM(softc->agpm_data.agpm_acaptr); in agpmaster_ioctl() 469 cap = softc->agpm_data.agpm_acaptr; in agpmaster_ioctl() [all …]
|
/titanic_50/usr/src/uts/common/sys/scsi/targets/ |
H A D | ses.h | 55 #define SES_DEVP(softc) ((softc)->ses_devp) argument 56 #define SES_DEVINFO(softc) (SES_DEVP(softc)->sd_dev) argument 57 #define SES_RQSENSE(softc) (SES_DEVP(softc)->sd_sense) argument 58 #define SES_ROUTE(softc) (&SES_DEVP(softc)->sd_address) argument 61 #define ISOPEN(softc) ((softc)->ses_lyropen || (softc)->ses_oflag) argument
|
/titanic_50/usr/src/uts/common/io/1394/targets/dcam1394/ |
H A D | dcam.c | 619 dcam_state_t *softc; in dcam_close() local 622 softc = (dcam_state_t *)ddi_get_soft_state(dcam_state_p, instance); in dcam_close() 627 softc->pm_open_count = 0; in dcam_close() 628 if (ddi_prop_exists(DDI_DEV_T_ANY, softc->dip, 0, "power-managed?")) { in dcam_close() 629 (void) pm_idle_component(softc->dip, 0); in dcam_close() 632 mutex_enter(&softc->softc_mutex); in dcam_close() 635 softc->flags &= ~DCAM1394_FLAG_OPEN_CONTROL; in dcam_close() 642 if (softc->flags & DCAM1394_FLAG_FRAME_RCV_INIT) { in dcam_close() 643 (void) dcam_frame_rcv_stop(softc); in dcam_close() 644 softc->flags &= ~DCAM1394_FLAG_FRAME_RCV_INIT; in dcam_close() [all …]
|
/titanic_50/usr/src/uts/common/sys/agp/ |
H A D | agpmaster_io.h | 92 cred_t *cred, int *rval, agp_master_softc_t *softc);
|
/titanic_50/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | offload.h | 129 void *softc; member
|
H A D | t4_nexus.c | 2336 rc = ui->attach(sc, &usc->softc); in activate_uld() 2338 ASSERT(usc->softc != NULL); in activate_uld() 2358 if (usc->uld == NULL || usc->softc == NULL) { in deactivate_uld() 2363 rc = usc->uld->detach(usc->softc); in deactivate_uld() 2368 usc->softc = NULL; in deactivate_uld()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | bofi.c | 834 struct bofi_errent *softc; in bofi_open() local 869 softc = ddi_get_soft_state(statep, minor); in bofi_open() 870 softc->cnext = softc; in bofi_open() 871 softc->cprev = softc; in bofi_open() 883 struct bofi_errent *softc; in bofi_close() local 886 softc = ddi_get_soft_state(statep, minor); in bofi_close() 887 if (softc == NULL) in bofi_close() 892 for (ep = softc->cnext; ep != softc; ) { in bofi_close() 914 struct bofi_errent *softc; in bofi_ioctl() local 1014 softc = ddi_get_soft_state(statep, minor); in bofi_ioctl() [all …]
|
/titanic_50/usr/src/uts/intel/io/ipmi/ |
H A D | ipmi_main.c | 64 static struct ipmi_softc softc; variable 65 static struct ipmi_softc *sc = &softc;
|