Lines Matching refs:dev
360 static cont_device_t *contract_device_create(ctmpl_device_t *dtmpl, dev_t dev,
647 dev_t dev;
672 dev = NODEV;
673 if (resolve_pathname(buf, NULL, &dev, &spec_type) != 0 ||
674 dev == NODEV || dev == DDI_DEV_T_ANY || dev == DDI_DEV_T_NONE ||
684 dev, spec_type, curproc, &error);
689 curproc->p_pid, dev,
1199 contract_device_create(ctmpl_device_t *dtmpl, dev_t dev, int spec_type,
1208 ASSERT(dev != NODEV && dev != DDI_DEV_T_ANY && dev != DDI_DEV_T_NONE);
1255 ctd->cond_devt = dev;
1325 contract_device_open(dev_t dev, int spec_type, contract_t **ctpp)
1373 if (ddi_dev_pathname(dev, spec_type, path) != DDI_SUCCESS) {
1376 dev, spec_type, curproc->p_pid));
1387 ctd = contract_device_create(dtmpl, dev, spec_type, curproc, &error);
1400 curproc->p_pid, dev, spec_type);
1418 wait_for_acks(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype)
1429 ASSERT(dev != NODEV && dev != DDI_DEV_T_NONE);
1430 ASSERT((dev == DDI_DEV_T_ANY && spec_type == 0) ||
1451 if (dev != DDI_DEV_T_ANY && dev != ctd->cond_devt) {
1455 if (dev != DDI_DEV_T_ANY && spec_type != ctd->cond_spec) {
1583 contract_device_publish(dev_info_t *dip, dev_t dev, int spec_type,
1600 ASSERT(dev != NODEV && dev != DDI_DEV_T_NONE);
1601 ASSERT((dev == DDI_DEV_T_ANY && spec_type == 0) ||
1678 if (dev != DDI_DEV_T_ANY && dev != ctd->cond_devt) {
1682 if (dev != DDI_DEV_T_ANY && spec_type != ctd->cond_spec) {
1695 * 1. A contract is broken (dev not in acceptable state) and
1906 (void) wait_for_acks(dip, dev, spec_type, evtype);
1910 result = wait_for_acks(dip, dev, spec_type, evtype);
1943 contract_device_offline(dev_info_t *dip, dev_t dev, int spec_type)
1952 result = contract_device_publish(dip, dev, spec_type, evtype, nvl);
1959 contract_device_negend(dip, dev, spec_type, CT_EV_FAILURE);
1973 contract_device_degrade(dev_info_t *dip, dev_t dev, int spec_type)
1981 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl);
1992 contract_device_undegrade(dev_info_t *dip, dev_t dev, int spec_type)
2000 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl);
2012 contract_device_negend(dev_info_t *dip, dev_t dev, int spec_type, int result)
2027 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl);
2039 contract_device_negotiate(dev_info_t *dip, dev_t dev, int spec_type,
2045 ASSERT(dev != NODEV);
2046 ASSERT(dev != DDI_DEV_T_ANY);
2047 ASSERT(dev != DDI_DEV_T_NONE);
2052 result = contract_device_offline(dip, dev, spec_type);
2057 "dip (%p)", evtype, dev, spec_type, (void *)dip);
2072 contract_device_finalize(dev_info_t *dip, dev_t dev, int spec_type,
2076 ASSERT(dev != NODEV);
2077 ASSERT(dev != DDI_DEV_T_ANY);
2078 ASSERT(dev != DDI_DEV_T_NONE);
2083 contract_device_negend(dip, dev, spec_type, ct_result);
2086 contract_device_degrade(dip, dev, spec_type);
2087 contract_device_negend(dip, dev, spec_type, ct_result);
2090 contract_device_undegrade(dip, dev, spec_type);
2091 contract_device_negend(dip, dev, spec_type, ct_result);
2096 evtype, dev, spec_type, (void *)dip);