Lines Matching defs:instance

319  *                 to the vdc instance the vdc_msglevel applies.
419 int instance = VDCUNIT((dev_t)arg);
424 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
431 *resultp = (void *)(uintptr_t)instance;
443 int instance;
460 instance = ddi_get_instance(dip);
461 DMSGX(1, "[%d] Entered\n", instance);
463 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
464 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
469 DMSG(vdc, 0, "[%d] Cannot detach: device is open", instance);
476 instance, vdc->dkio_flush_pending);
483 instance, vdc->validate_pending);
487 DMSG(vdc, 0, "[%d] proceeding...\n", instance);
499 /* mark instance as detaching */
529 instance);
542 vdc->instance);
623 ddi_soft_state_free(vdc_state, instance);
625 DMSG(vdc, 0, "[%d] End %p\n", instance, (void *)vdc);
634 int instance;
642 instance = ddi_get_instance(dip);
643 if (ddi_soft_state_zalloc(vdc_state, instance) != DDI_SUCCESS) {
645 instance);
649 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
650 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
664 vdc->instance = instance;
713 /* get device and port MD node for this disk instance */
716 instance);
721 cmn_err(CE_NOTE, "[%d] Error initialising ports", instance);
742 instance);
754 "I/O thread", instance);
780 instance);
792 DMSG(vdc, 0, "[%d] Attach tasks successful\n", instance);
795 DMSG(vdc, 0, "[%d] Attach completed\n", instance);
828 ldc_attr.instance = vdc->instance;
837 vdc->instance, srvr->ldc_id, status);
845 vdc->instance, status);
855 vdc->instance, status);
869 vdc->instance, srvr->ldc_id, status);
894 DMSG(vdc, 0, "[%d] Finished bringing up LDC\n", vdc->instance);
924 DMSG(vdc, 0, "[%d] I/O kstat already exists\n", vdc->instance);
928 vdc->io_stats = kstat_create(VDC_DRIVER_NAME, vdc->instance, NULL,
935 " will not be gathered", vdc->instance);
946 int instance = vdc->instance;
949 DMSG(vdc, 0, "[%d] ERR kstat already exists\n", vdc->instance);
956 "%s%d,err", VDC_DRIVER_NAME, instance);
958 vdc->err_stats = kstat_create(kstatmodule_err, instance, kstatname,
963 " will not be gathered", instance);
1013 VD_MAKE_DEV(vdc->instance, VD_EFI_WD_SLICE),
1016 vdc->instance);
1024 VD_MAKE_DEV(vdc->instance, VD_EFI_WD_SLICE),
1027 vdc->instance);
1041 VD_MAKE_DEV(vdc->instance, VD_EFI_WD_SLICE),
1044 vdc->instance);
1052 VD_MAKE_DEV(vdc->instance, VD_EFI_WD_SLICE),
1055 vdc->instance);
1068 * /devices. It is called as part of the attach(9E) of the instance
1088 int instance, status;
1094 instance = vdc->instance;
1129 VD_MAKE_DEV(instance, i), DDI_NT_BLOCK, 0) != DDI_SUCCESS) {
1131 instance, name);
1141 VD_MAKE_DEV(instance, i), DDI_NT_BLOCK, 0) != DDI_SUCCESS) {
1143 instance, name);
1159 int instance = ddi_get_instance(dip);
1164 vdc = ddi_get_soft_state(vdc_state, instance);
1294 int instance, nodelay;
1299 instance = VDCUNIT(*dev);
1304 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
1305 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
1380 int instance;
1385 instance = VDCUNIT(dev);
1390 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
1391 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
1395 DMSG(vdc, 0, "[%d] flag = %x, otyp = %x\n", instance, flag, otyp);
1408 instance, rv);
1439 int instance = VDCUNIT(dev);
1443 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
1444 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
1449 instance, nbytes, blkno, (void *)addr);
1472 DMSG(vdc, 0, "[%d] End\n", instance);
1496 int instance = VDCUNIT(buf->b_edev);
1500 if ((vdc = ddi_get_soft_state(vdc_state, instance)) == NULL) {
1501 cmn_err(CE_NOTE, "[%d] Couldn't get state structure", instance);
1508 instance, (buf->b_flags & B_READ) ? "Read" : "Write",
1558 int instance = VDCUNIT(bufp->b_edev);
1560 vdc = ddi_get_soft_state(vdc_state, instance);
1619 * vdc - soft state pointer for this instance of the device driver.
1634 DMSG(vdc, 0, "[%d] Entered.\n", vdc->instance);
1641 DMSG(vdc, 0, "[%d] Set SID to 0x%lx\n", vdc->instance, vdc->session_id);
1653 vdc->instance, status);
1656 "id(%lx) rv(%d) size(%ld)", vdc->instance,
1672 * vdcp - soft state pointer for this instance of the device driver.
1693 vdcp->instance, status);
1701 vdcp->instance);
1715 * vdc - soft state pointer for this instance of the device driver.
1730 DMSG(vdc, 0, "[%d] entered\n", vdc->instance);
1751 "id(%lx) rv(%d) size(%ld)", vdc->instance,
1767 * vdc - soft state pointer for this instance of the device driver.
1788 vdcp->instance, status);
1796 vdcp->instance);
1811 * vdc - soft state pointer for this instance of the device driver.
1837 vdc->instance, status);
1842 vdc->instance, status);
1860 vdc->instance, status);
1874 * vdc - soft state pointer for this instance of the device driver.
1895 " rv(%d)", vdcp->instance, status);
1903 vdcp->instance);
1919 * vdc - soft state pointer for this instance of the device driver.
1942 vdcp->instance, status);
1955 * vdc - soft state pointer for this instance of the device driver.
1971 DMSG(vdcp, 1, "[%d] Got an RDX msg", vdcp->instance);
1983 * vdc - soft state pointer for this instance of the device driver.
2003 vdcp->instance, status);
2010 DMSG(vdcp, 0, "[%d] Invalid RDX response\n", vdcp->instance);
2151 * ldc_handle - LDC handle for the channel this instance of vdc uses
2209 "vdc is resetting ..\n", vdc->instance);
2228 * Get the MD, the device node for the given disk instance. The
2233 * dip - dev info pointer for this instance of the device driver.
2257 int instance = ddi_get_instance(dip);
2260 * Get the OBP instance number for comparison with the MD instance
2263 * notion of "instance", or unique identifier, for that node; OBP
2267 * "reg" property value to uniquely identify this device instance.
2277 DMSGX(1, "[%d] OBP inst=%d\n", instance, obp_inst);
2312 DMSGX(1, "[%d] num_vdevs=%d\n", instance, num_vdevs);
2321 DMSGX(1, "[%d] Found node '%s'\n", instance, node_name);
2326 instance, md_inst);
2339 DMSGX(0, "[%d] MD inst=%lx\n", instance, md_inst);
2353 * Initialize all the ports for this vdisk instance.
2356 * vdc - soft state pointer for this instance of the device driver.
2501 * vdc - soft state pointer for this instance of the device driver.
2517 vdc->instance, vdc->curr_server->ldc_id);
2526 vdc->instance, vdc->curr_server->ldc_id, status);
2531 "channel=%ld, err=%d", vdc->instance,
2541 vdc->instance);
2557 * vdc - soft state pointer for this instance of the device driver.
2566 int instance = ddi_get_instance(vdc->dip);
2569 DMSG(vdc, 0, "[%d] ldc_close()\n", instance);
2573 DMSG(vdc, 0, "[%d] ldc_unreg_callback()\n", instance);
2577 DMSG(vdc, 0, "[%d] ldc_fini()\n", instance);
2594 * vdc - soft state pointer for this instance of the device driver.
2602 int instance = ddi_get_instance(vdc->dip);
2608 DMSG(vdc, 0, "[%d] initialized=%x\n", instance, vdc->initialized);
2641 * vdc - soft state pointer for this instance of the device driver.
2653 DMSG(vdc, 0, "[%d] initialized=%x\n", vdc->instance, vdc->initialized);
2662 DMSG(vdc, 0, "[%d] ldc_mem_dring_create\n", vdc->instance);
2672 vdc->instance);
2687 vdc->instance);
2694 DMSG(vdc, 0, "[%d] ldc_mem_dring_bind\n", vdc->instance);
2706 vdc->instance, vdc->dring_hdl,
2718 vdc->instance, vdc->dring_hdl);
2723 DMSG(vdc, 0, "[%d] local dring\n", vdc->instance);
2747 " descriptor %d", vdc->instance, i);
2767 * vdc - soft state pointer for this instance of the device driver.
2784 DMSG(vdc, 0, "[%d] Entered\n", vdc->instance);
2788 "[%d] Removing Local DRing entries\n", vdc->instance);
2822 DMSG(vdc, 0, "[%d] Freeing Local DRing\n", vdc->instance);
2829 DMSG(vdc, 0, "[%d] Unbinding DRing\n", vdc->instance);
2835 vdc->instance, status, vdc->dring_hdl);
2841 DMSG(vdc, 0, "[%d] Destroying DRing\n", vdc->instance);
2849 vdc->instance, status, vdc->dring_hdl);
2863 * vdcp - soft state pointer for this instance of the device driver.
2883 vdcp->instance);
3091 vdcp->instance);
3124 vdcp->instance);
3134 vdcp->instance);
3157 DTRACE_PROBE2(populate, int, vdcp->instance,
3422 * vdc - soft state pointer for this instance of the device driver.
3498 vdc->instance, idx);
3504 vdc->instance, idx, ldep->dep->hdr.dstate);
3547 * vdc - soft state pointer for this instance of the device driver.
3567 DTRACE_PROBE2(depopulate, int, vdc->instance, vdc_local_desc_t *, ldep);
3610 vdc->instance, ldep->desc_mhdl, idx, rv);
3633 * vdc - soft state pointer for this instance of the device driver.
3691 vdcp->instance, (void *)vaddr, (void *)ldep->align_addr,
3702 vdcp->instance, dep->payload.ncookies);
3706 vdcp->instance, (void *)mhdl, (void *)vaddr, rv);
3724 vdcp->instance, mhdl, i, rv);
3749 * arg - soft state pointer for this instance of the device driver.
3771 vdc->instance, event, srvr->id);
3785 DMSG(vdc, 0, "[%d] Received LDC_EVT_UP\n", vdc->instance);
3791 vdc->instance, rv);
3812 DMSG(vdc, 1, "[%d] Received LDC_EVT_READ\n", vdc->instance);
3825 DMSG(vdc, 0, "[%d] Received LDC RESET event\n", vdc->instance);
3853 vdc->instance, event);
3868 * vdcp - soft state pointer for this instance of the device driver.
3881 DMSG(vdcp, 1, "[%d] Entered\n", vdcp->instance);
3888 vdcp->instance, status);
3894 vdcp->instance, sizeof (vio_msg_tag_t), nbytes);
3898 DMSG(vdcp, 2, "[%d] (%x/%x/%x)\n", vdcp->instance,
3913 vdcp->instance, msgp->tag.vio_sid,
3933 * vdcp - soft state pointer for this instance of the device driver.
3982 vdcp->instance, b_idx);
4024 * vdcp - soft state pointer for this instance of the device driver.
4113 * pointer for the instance of the device driver.
4140 * vdcp - soft state pointer for this instance of the device driver.
4235 vdcp->instance, curr_server->id);
4243 vdcp->instance, vdcp->curr_server->id, vdcp->curr_server->ldc_id);
4249 int instance;
4260 instance = vdcp->instance;
4267 cmn_err(CE_CONT, "?vdisk@%d is offline\n", instance);
4272 instance, ldc_id, port_id);
4277 instance, ldc_id, port_id);
4282 "using ldc@%ld,%ld\n", instance, ldc_id, port_id);
4287 "using ldc@%ld,%ld\n", instance, ldc_id, port_id);
4412 * Main VDC message processing thread. Each vDisk instance
4418 * vdc - soft state pointer for this instance of the device driver.
4509 "handshakes", vdcp->instance);
4621 vdcp->instance);
4703 vdcp->instance);
4762 "recovered", vdcp->instance);
4793 vdcp->instance);
4797 "returned err=%d\n", vdcp->instance,
4843 vdcp->instance);
4887 vdcp->instance);
4914 vdcp->instance);
4938 * vdc - soft state pointer for this instance of the device driver.
4976 vdcp->instance, start, end);
4997 DMSG(vdcp, 0, "[%d] invalid seqno\n", vdcp->instance);
5010 DMSG(vdcp, 0, "[%d] DATA NACK\n", vdcp->instance);
5101 * vdc - soft state pointer for this instance of the device driver.
5156 vdc->instance, status);
5161 vdc->instance);
5189 * vdc - soft state pointer for this instance of the device driver.
5215 vdc->instance);
5222 vdc->instance);
5229 vdc->instance);
5238 vdc->instance, attr_msg->vdisk_block_size);
5255 vdc->instance, vdc->max_xfer_sz, attr_msg->max_xfer_sz);
5257 vdc->instance, vdc->vdisk_bsize,
5265 vdc->instance);
5290 "device nodes", vdc->instance);
5327 * vdc - soft state pointer for this instance of the driver.
5350 vdc->instance, vdc->dring_ident);
5359 vdc->instance);
5391 * vdc - soft state pointer for this instance of the driver.
5415 vdc->instance, dring_msg->seq_num,
5548 vdc->instance, rv,
5762 status = physio(vdc_strategy, buf, VD_MAKE_DEV(vdc->instance, 0),
5838 ddi_pathname(vdc->dip, path_str), vdc->instance,
7025 vdc->instance);
7039 vdc->instance);
7043 vdc->instance);
7257 VD_MAKE_DEV(vdc->instance, 0));
7287 int instance = VDCUNIT(dev);
7297 vdc = ddi_get_soft_state(vdc_state, instance);
7300 instance);
7305 instance, cmd, dev, ddi_model_convert_from(mode & FMODELS));
7325 vdc->instance, cmd);
7535 instance, mode);
7593 vdc->instance, iop->op);
7600 instance, len, alloc_len);
7614 instance, rv, cmd);
7633 instance, rv, cmd);
7649 instance, rv, cmd);
8103 * vdc - soft state pointer for this instance of the device driver.
8156 vdc->cinfo->dki_unit = vdc->instance;
8223 " using max supported by vdc", vdc->instance);
8293 * vdc - soft state pointer for this instance of the device driver.
8324 VD_MAKE_DEV(vdc->instance, 0));
8351 vdc->instance, rv);
8365 vdc->instance, rv);
8437 vdc->instance);
8459 * vdc - soft state pointer for this instance of the device driver.
8493 vdc->instance);
8524 * vdc - soft state pointer for this instance of the device driver.
8597 DMSG(vdc, 1, "[%d] Fail to created devid\n", vdc->instance);
8616 vdc->instance);
8621 vdc->instance,
8630 vdc->instance,
8641 DMSG(vdc, 1, "[%d] Fail to register devid\n", vdc->instance);