Lines Matching refs:instance

296 	 * has worked  -- if this works, then we know that each instance
463 int instance;
466 instance = getminor((dev_t)arg);
470 *result = (void *)(long)instance; /* minor number is instance */
493 int instance;
496 instance = ddi_get_instance(pinfo->port_dip);
508 "instance 0x%x", instance));
518 if (fcsm_handle_port_attach(pinfo, s_id, instance)
521 instance) == NULL);
533 "port_attach: cmd 0x%x instance 0x%x", cmd, instance));
536 if ((fcsm = ddi_get_soft_state(fcsm_state, instance)) == NULL) {
538 "port_attach: instance 0x%x, cmd 0x%x "
539 "get softstate failed", instance, cmd));
543 ASSERT(fcsm->sm_instance == instance);
545 /* If this instance is not attached, then return failure */
570 cmd, instance));
582 fcsm_handle_port_attach(fc_ulp_port_info_t *pinfo, uint32_t s_id, int instance)
590 if (ddi_soft_state_zalloc(fcsm_state, instance) != DDI_SUCCESS) {
592 "port_attach: instance 0x%x, soft state alloc failed",
593 instance);
597 if ((fcsm = ddi_get_soft_state(fcsm_state, instance)) == NULL) {
599 "port_attach: instance 0x%x, get soft state failed",
600 instance);
601 ddi_soft_state_free(fcsm_state, instance);
613 fcsm->sm_instance = instance;
634 ddi_soft_state_free(fcsm_state, instance);
646 ddi_soft_state_free(fcsm_state, instance);
927 int instance;
931 instance = ddi_get_instance(pinfo->port_dip);
938 "port_detach: end. instance 0x%x, fcsm is detached",
939 instance));
946 if ((fcsm = ddi_get_soft_state(fcsm_state, instance)) == NULL) {
948 "port_detach: instance 0x%x, cmd 0x%x get softstate failed",
949 instance, cmd));
956 ASSERT(fcsm->sm_instance == instance);
958 /* If this instance is not attached, then fail the detach */
972 * If fcsm has been detached, then all instance has already been
1248 "statec_cb: instance 0x%x not found",
1509 int status, instance, count;
1536 instance = *((int *)abuf);
1539 if (instance < 0) {
1541 "fciocmd: instance 0x%x, invalid instance",
1542 instance));
1549 * and a valid instance.
1550 * If this port instance is not yet attached, then wait
1553 fcsm = ddi_get_soft_state(fcsm_state, instance);
1567 "fciocmd: instance 0x%x, "
1568 "wait for port attach", instance));
1571 fcsm = ddi_get_soft_state(fcsm_state, instance);
1575 "fciocmd: instance 0x%x, port not attached",
1576 instance));
2372 fcsm_init_job(fcsm_job_t *job, int instance, uint32_t command, uint32_t flags,
2377 job->job_port_instance = instance;
2400 "process_job: port instance 0x%x not found",
3219 fcsm_ct_passthru(int instance, fcio_t *fcio, int sleep, int job_flags,
3226 "ct_passthru: instance 0x%x fcio 0x%p", instance, fcio));
3230 fcsm_init_job(job, instance, FCSM_JOB_CT_PASSTHRU, job_flags,
3549 "Queue is currently suspended for this instance"));