Lines Matching defs:instance

424  * Linked list of "vsw_t" structures - one per instance.
485 * template is copied for each vsw instance and filled in with
525 cmn_err(CE_CONT, "vsw%d: %s\n", vswp->instance, buf);
582 int instance;
599 instance = ddi_get_instance(dip);
600 if (ddi_soft_state_zalloc(vsw_state, instance) != DDI_SUCCESS) {
601 DERR(NULL, "vsw%d: ddi_soft_state_zalloc failed", instance);
604 vswp = ddi_get_soft_state(vsw_state, instance);
607 DERR(NULL, "vsw%d: ddi_get_soft_state failed", instance);
612 vswp->instance = instance;
635 vswp->instance);
645 vswp->instance);
656 (void) snprintf(qname, TASKQ_NAMELEN, "taskq%d", vswp->instance);
660 vswp->instance);
667 vswp->instance);
671 vswp->instance);
681 "instance %u", DDI_NO_AUTODETACH, instance);
742 ddi_soft_state_free(vsw_state, instance);
750 int instance;
752 instance = ddi_get_instance(dip);
753 vswp = ddi_get_soft_state(vsw_state, instance);
768 D2(vswp, "detaching instance %d", instance);
785 ddi_soft_state_free(vsw_state, instance);
811 "MAC layer", vswp->instance);
950 int instance;
957 instance = ddi_get_instance(vswp->dip);
958 (void) snprintf(myname, MAXNAMELEN, "%s%d", dev_name, instance);
963 "device(s) from MD", vswp->instance);
967 vswp->instance, physname);
975 vswp->instance, physname);
997 vswp->instance, dev);
1002 "config file", vswp->instance, dev);
1041 " from the MD", vswp->instance);
1066 vswp->instance, curr_mode);
1109 "a provider with MAC layer", vswp->instance);
1218 "unicast address\n", vswp->instance);
1300 "address", vswp->instance);
1383 * Allocate and initialize a per-instance copy
1385 * uniquely identify this vsw instance.
1399 D2(vswp, "%s: instance %d registering with mdeg", __func__,
1434 vswp->instance);
1512 "invalid: %d\n", vswp->instance, resp->added.nelem);
1523 "invalid: %d\n", vswp->instance,
1535 /* Validate name and instance */
1554 /* is this the right instance of vsw? */
1599 "(0x%lx), err=%d", vswp->instance, node, rv);
1618 vswp->instance, inst);
1635 * Scan the machine description for this instance of vsw
1657 * an instance number (this may be completely different from
1658 * the device drivers instance #). OBP reads that value and
1662 * in MD to get to this specific vsw instance and then read
1671 "OBP device tree", vswp->instance, reg_propname);
1702 * such device compare its instance with what we have from
1724 /* is this the required instance of vsw? */
1728 /* now read all properties of this vsw instance */
1757 vswp->instance);
1785 /* read vlan id properties of this vsw instance */
1792 /* read bandwidth property of this vsw instance */
1836 inst = vswp->instance;
1994 inst = vswp->instance;
2026 " as the device is plumbed\n", vswp->instance);
2042 " layer\n", vswp->instance);
2073 vswp->instance, *pls);
2113 vsw_maxbw_propname, vswp->instance, *bw);
2163 * Do basic sanity check on new device name/instance,
2172 " a valid device name/instance",
2173 vswp->instance, physname);
2188 "device from updated MD.", vswp->instance);
2197 vswp->instance);
2226 vswp->instance, smode_propname);
2257 vswp->instance, mtu);
2277 vswp->instance, maxbw);
2340 vswp->instance, vswp->physname, physname);
2390 vswp->instance, macaddr);
2439 cmn_err(CE_WARN, "!vsw%d: configuration unchanged", vswp->instance);
2444 vswp->instance);
2674 vswp->instance, portp->p_instance, maxbw);