Lines Matching defs:instance

503     uint32_t s_id, int instance);
505 int instance);
506 static void fcp_cleanup_port(struct fcp_port *pptr, int instance);
522 uint32_t s_id, fc_attach_cmd_t cmd, int instance);
1179 * has worked -- if this works, then we know that each instance
1235 * not specific to an instance.
1477 * this instance of fp. If this changes we will need to
1785 * this instance of fp. If this changes we will need to
1799 cmn_err(CE_NOTE, "target mappings: unknown instance number: %d",
3137 * this instance of fp. If this changes we will need to
3594 int instance;
3599 instance = ddi_get_instance(pinfo->port_dip);
3604 * this port instance attaching for the first time (or after
3608 instance) == DDI_SUCCESS) {
3612 instance) == NULL);
3619 * this port instance was attached and the suspended and
3623 instance) == DDI_SUCCESS) {
3645 * detach or suspend this port instance
3659 int instance;
3662 instance = ddi_get_instance(info->port_dip);
3663 pptr = ddi_get_soft_state(fcp_softstate, instance);
3669 "port suspend called for port %d", instance);
3676 "port power down called for port %d", instance);
3683 "port detach called for port %d", instance);
3694 return (fcp_handle_port_detach(pptr, flag, instance));
9752 * instance Device instance number for the local port
9763 uint32_t s_id, int instance)
9779 * this port instance attaching for the first time (or after
9783 FCP_BUF_LEVEL_3, 0, "port attach: for port %d", instance);
9785 if (ddi_soft_state_zalloc(fcp_softstate, instance) != DDI_SUCCESS) {
9787 "parent dip: %p; instance: %d", (void *)pinfo->port_dip,
9788 instance);
9792 if ((pptr = ddi_get_soft_state(fcp_softstate, instance)) == NULL) {
9794 ddi_soft_state_free(fcp_softstate, instance);
9799 (void) sprintf(pptr->port_instbuf, "fcp(%d)", instance);
9835 pptr->port_instance = instance;
9871 "!fcp%d: scsi_hba_tran_alloc failed", instance);
9958 "!fcp%d: scsi_hba_attach_setup failed", instance);
10078 instance);
10142 instance, pptr->port_phys_state);
10234 ddi_soft_state_free(fcp_softstate, instance);
10241 fcp_handle_port_detach(struct fcp_port *pptr, int flag, int instance)
10327 fcp_cleanup_port(pptr, instance);
10335 fcp_cleanup_port(struct fcp_port *pptr, int instance)
10380 ddi_soft_state_free(fcp_softstate, instance);
10826 "fcp_phys_tgt_init: called for %s (instance %d)",
10838 " for %s (instance %d): bytes=%p nbytes=%x",
10856 " for %s (instance %d)", ddi_get_name(tgt_dip),
10869 " for %s (instance %d)", ddi_get_name(tgt_dip),
10913 "fcp_virt_tgt_init: called for %s (instance %d) (hba_dip %p),"
10922 " for %s (instance %d)", ddi_get_name(tgt_dip),
10947 " for %s (instance %d)", ddi_get_name(tgt_dip),
10960 " for %s (instance %d)", ddi_get_name(tgt_dip),
11607 * target drivers use RESET_TARGET even if their instance is on a
12153 uint32_t s_id, fc_attach_cmd_t cmd, int instance)
12163 instance);
12165 if ((pptr = ddi_get_soft_state(fcp_softstate, instance)) == NULL) {
12248 instance);
12288 instance, pptr->port_phys_state);
13054 * The behavior is different on other devices. For instance, on a HDS,
14322 int instance;
14324 instance = ddi_get_instance(dip);
14325 return (ddi_get_soft_state(fcp_softstate, instance));
15638 * If the device is offline (-1 instance number) NULL