Lines Matching refs:spec_type

362     int spec_type, proc_t *owner, int *errorp);
506 int spec_type; in ctmpl_device_set() local
559 spec_type = 0; in ctmpl_device_set()
561 if (resolve_pathname(str_value, &dip, NULL, &spec_type) != 0) { in ctmpl_device_set()
566 if (spec_type != S_IFCHR && spec_type != S_IFBLK) { in ctmpl_device_set()
650 int spec_type; in ctmpl_device_create() local
673 spec_type = 0; in ctmpl_device_create()
675 if (resolve_pathname(buf, NULL, &dev, &spec_type) != 0 || in ctmpl_device_create()
677 (spec_type != S_IFCHR && spec_type != S_IFBLK)) { in ctmpl_device_create()
686 dev, spec_type, curproc, &error); in ctmpl_device_create()
692 spec_type == S_IFCHR ? "S_IFCHR" : "S_IFBLK")); in ctmpl_device_create()
1200 contract_device_create(ctmpl_device_t *dtmpl, dev_t dev, int spec_type, in contract_device_create() argument
1210 ASSERT(spec_type == S_IFCHR || spec_type == S_IFBLK); in contract_device_create()
1257 ctd->cond_spec = spec_type; in contract_device_create()
1326 contract_device_open(dev_t dev, int spec_type, contract_t **ctpp) in contract_device_open() argument
1374 if (ddi_dev_pathname(dev, spec_type, path) != DDI_SUCCESS) { in contract_device_open()
1377 dev, spec_type, curproc->p_pid)); in contract_device_open()
1388 ctd = contract_device_create(dtmpl, dev, spec_type, curproc, &error); in contract_device_open()
1401 curproc->p_pid, dev, spec_type); in contract_device_open()
1419 wait_for_acks(dev_info_t *dip, dev_t dev, int spec_type, uint_t evtype) in wait_for_acks() argument
1431 ASSERT((dev == DDI_DEV_T_ANY && spec_type == 0) || in wait_for_acks()
1432 (spec_type == S_IFBLK || spec_type == S_IFCHR)); in wait_for_acks()
1456 if (dev != DDI_DEV_T_ANY && spec_type != ctd->cond_spec) { in wait_for_acks()
1584 contract_device_publish(dev_info_t *dip, dev_t dev, int spec_type, in contract_device_publish() argument
1602 ASSERT((dev == DDI_DEV_T_ANY && spec_type == 0) || in contract_device_publish()
1603 (spec_type == S_IFBLK || spec_type == S_IFCHR)); in contract_device_publish()
1683 if (dev != DDI_DEV_T_ANY && spec_type != ctd->cond_spec) { in contract_device_publish()
1907 (void) wait_for_acks(dip, dev, spec_type, evtype); in contract_device_publish()
1911 result = wait_for_acks(dip, dev, spec_type, evtype); in contract_device_publish()
1943 contract_device_offline(dev_info_t *dip, dev_t dev, int spec_type) in contract_device_offline() argument
1952 result = contract_device_publish(dip, dev, spec_type, evtype, nvl); in contract_device_offline()
1959 contract_device_negend(dip, dev, spec_type, CT_EV_FAILURE); in contract_device_offline()
1973 contract_device_degrade(dev_info_t *dip, dev_t dev, int spec_type) in contract_device_degrade() argument
1981 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl); in contract_device_degrade()
1992 contract_device_undegrade(dev_info_t *dip, dev_t dev, int spec_type) in contract_device_undegrade() argument
2000 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl); in contract_device_undegrade()
2012 contract_device_negend(dev_info_t *dip, dev_t dev, int spec_type, int result) in contract_device_negend() argument
2027 (void) contract_device_publish(dip, dev, spec_type, evtype, nvl); in contract_device_negend()
2039 contract_device_negotiate(dev_info_t *dip, dev_t dev, int spec_type, in contract_device_negotiate() argument
2048 ASSERT(spec_type == S_IFBLK || spec_type == S_IFCHR); in contract_device_negotiate()
2053 result = contract_device_offline(dip, dev, spec_type); in contract_device_negotiate()
2058 "dip (%p)", evtype, dev, spec_type, (void *)dip); in contract_device_negotiate()
2072 contract_device_finalize(dev_info_t *dip, dev_t dev, int spec_type, in contract_device_finalize() argument
2079 ASSERT(spec_type == S_IFBLK || spec_type == S_IFCHR); in contract_device_finalize()
2083 contract_device_negend(dip, dev, spec_type, ct_result); in contract_device_finalize()
2086 contract_device_degrade(dip, dev, spec_type); in contract_device_finalize()
2087 contract_device_negend(dip, dev, spec_type, ct_result); in contract_device_finalize()
2090 contract_device_undegrade(dip, dev, spec_type); in contract_device_finalize()
2091 contract_device_negend(dip, dev, spec_type, ct_result); in contract_device_finalize()
2096 evtype, dev, spec_type, (void *)dip); in contract_device_finalize()