Lines Matching refs:spec_type

190  * 	dev_t and spec_type of the minor node. There are also a few fields that
361 int spec_type, proc_t *owner, int *errorp);
505 int spec_type;
557 spec_type = 0;
559 if (resolve_pathname(str_value, &dip, NULL, &spec_type) != 0) {
564 if (spec_type != S_IFCHR && spec_type != S_IFBLK) {
648 int spec_type;
671 spec_type = 0;
673 if (resolve_pathname(buf, NULL, &dev, &spec_type) != 0 ||
675 (spec_type != S_IFCHR && spec_type != S_IFBLK)) {
684 dev, spec_type, curproc, &error);
688 "process (%d) with device (devt = %lu, spec_type = %s)",
690 spec_type == S_IFCHR ? "S_IFCHR" : "S_IFBLK"));
1198 contract_device_create(ctmpl_device_t *dtmpl, dev_t dev, int spec_type,
1208 ASSERT(spec_type == S_IFCHR || spec_type == S_IFBLK);
1255 ctd->cond_spec = spec_type;
1324 contract_device_open(dev_t dev, int spec_type, contract_t **ctpp)
1372 if (ddi_dev_pathname(dev, spec_type, path) != DDI_SUCCESS) {
1375 dev, spec_type, curproc->p_pid));
1386 ctd = contract_device_create(dtmpl, dev, spec_type, curproc, &error);
1398 "device (devt = %lu, spec_type = %d)",
1399 curproc->p_pid, dev, spec_type);
1417 wait_for_acks(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype)
1429 ASSERT((dev == DDI_DEV_T_ANY && spec_type == 0) ||
1430 (spec_type == S_IFBLK || spec_type == S_IFCHR));
1454 if (dev != DDI_DEV_T_ANY && spec_type != ctd->cond_spec) {
1582 contract_device_publish(dev_info_t *dip, dev_t dev, int spec_type,
1600 ASSERT((dev == DDI_DEV_T_ANY && spec_type == 0) ||
1601 (spec_type == S_IFBLK || spec_type == S_IFCHR));
1681 if (dev != DDI_DEV_T_ANY && spec_type != ctd->cond_spec) {
1905 (void) wait_for_acks(dip, dev, spec_type, evtype);
1909 result = wait_for_acks(dip, dev, spec_type, evtype);
1941 contract_device_offline(dev_info_t *dip, dev_t dev, int spec_type)
1950 result = contract_device_publish(dip, dev, spec_type, evtype, nvl);
1957 contract_device_negend(dip, dev, spec_type, CT_EV_FAILURE);
1971 contract_device_degrade(dev_info_t *dip, dev_t dev, int spec_type)
1979 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl);
1990 contract_device_undegrade(dev_info_t *dip, dev_t dev, int spec_type)
1998 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl);
2010 contract_device_negend(dev_info_t *dip, dev_t dev, int spec_type, int result)
2025 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl);
2037 contract_device_negotiate(dev_info_t *dip, dev_t dev, int spec_type,
2046 ASSERT(spec_type == S_IFBLK || spec_type == S_IFCHR);
2050 result = contract_device_offline(dip, dev, spec_type);
2055 "dip (%p)", evtype, dev, spec_type, (void *)dip);
2070 contract_device_finalize(dev_info_t *dip, dev_t dev, int spec_type,
2077 ASSERT(spec_type == S_IFBLK || spec_type == S_IFCHR);
2081 contract_device_negend(dip, dev, spec_type, ct_result);
2084 contract_device_degrade(dip, dev, spec_type);
2085 contract_device_negend(dip, dev, spec_type, ct_result);
2088 contract_device_undegrade(dip, dev, spec_type);
2089 contract_device_negend(dip, dev, spec_type, ct_result);
2094 evtype, dev, spec_type, (void *)dip);