Lines Matching defs:instance

371 	int		instance;
378 instance = ddi_get_instance(dip);
381 cmn_err(CE_NOTE, "scsb_attach[%d]", instance);
387 instance, cmd);
391 if (ddi_soft_state_zalloc(scsb_state, instance) != DDI_SUCCESS) {
393 instance);
397 scsb = (scsb_state_t *)ddi_get_soft_state(scsb_state, instance);
399 cmn_err(CE_WARN, "scsb%d: cannot get soft state", instance);
400 ddi_soft_state_free(scsb_state, instance);
403 scsb->scsb_instance = instance;
412 "scsb%d: Failed to get \"reg\" property", instance);
413 ddi_soft_state_free(scsb_state, instance);
419 instance, regs[0], regs[1], SCSB_I2C_ADDR);
420 ddi_soft_state_free(scsb_state, instance);
428 * for this instance.
477 if (ddi_create_minor_node(dip, scsb_name, S_IFCHR, instance,
480 free_resources(dip, scsb, instance);
486 instance|SCSB_CLONE, "ddi_ctl:pcihpc", NULL)
489 free_resources(dip, scsb, instance);
498 free_resources(dip, scsb, instance);
506 "scsb%d: i2c_transfer allocation failed", instance);
507 free_resources(dip, scsb, instance);
546 free_resources(dip, scsb, instance);
561 if (ddi_get_iblock_cookie(dip, instance,
566 if (ddi_add_intr(dip, instance, &scsb->scsb_iblock,
572 free_resources(dip, scsb, instance);
584 free_resources(dip, scsb, instance);
592 "scsb%d: I2C TRANSFER Failed", instance);
594 free_resources(dip, scsb, instance);
611 "scsb%d: I2C TRANSFER Failed", instance);
613 free_resources(dip, scsb, instance);
644 if (scsb_hsc_attach(dip, scsb, instance) != DDI_SUCCESS) {
887 int instance;
895 instance = ddi_get_instance(dip);
897 cmn_err(CE_NOTE, "scsb_detach[%d]", instance);
902 instance, cmd);
905 scsb = (scsb_state_t *)ddi_get_soft_state(scsb_state, instance);
909 (void) scsb_hsc_detach(dip, scsb, instance);
921 "scsb%d: Cannot turn off PSM_INT", instance);
923 (void) free_resources(dip, scsb, instance);
930 "scsb%d: I2C TRANSFER Failed", instance);
932 (void) free_resources(dip, scsb, instance);
939 "scsb%d: I2C TRANSFER Failed", instance);
941 (void) free_resources(dip, scsb, instance);
953 free_resources(dip, scsb, instance);
958 free_resources(dev_info_t *dip, scsb_state_t *scsb, int instance)
962 instance, scsb->scsb_state);
1010 ddi_soft_state_free(scsb_state, instance);
1084 int instance, clone;
1090 instance = SCSB_GET_INSTANCE(minor_dev);
1091 scsb = ddi_get_soft_state(scsb_state, instance);
1096 cmn_err(CE_NOTE, "sm_open(%d) q=0x%p", instance, (void *)q);
1118 cmn_err(CE_NOTE, "sm_open(%d): MODOPEN", instance);
1126 cmn_err(CE_NOTE, "sm_open(%d): CLONEOPEN", instance);
1140 "sm_open(%d): SCSB_CLONE OPEN", instance);
1150 clptr->cl_minor = SCSB_MAKE_MINOR(instance, clone);
1157 instance, clptr->cl_minor, (void *)q);
1161 cmn_err(CE_NOTE, "sm_open(%d): DEVOPEN", instance);
1167 instance);
1174 instance);
1179 instance);
1190 instance, (void *)RD(q),