Lines Matching defs:ctd

84  * The ctd specs make matching physical devices against a
119 ctd_spec_t *ctd;
1679 if ((((device_spec_t *)spec1)->data.ctd->slice != ID_UNSPECIFIED) &&
1680 (((device_spec_t *)spec2)->data.ctd->slice == ID_UNSPECIFIED)) {
1685 if ((((device_spec_t *)spec2)->data.ctd->slice != ID_UNSPECIFIED) &&
1686 (((device_spec_t *)spec1)->data.ctd->slice == ID_UNSPECIFIED)) {
1691 if ((((device_spec_t *)spec2)->data.ctd->slice != ID_UNSPECIFIED) &&
1692 (((device_spec_t *)spec1)->data.ctd->slice != ID_UNSPECIFIED)) {
1697 if ((((device_spec_t *)spec1)->data.ctd->lun != ID_UNSPECIFIED) &&
1698 (((device_spec_t *)spec2)->data.ctd->lun == ID_UNSPECIFIED)) {
1703 if ((((device_spec_t *)spec2)->data.ctd->lun != ID_UNSPECIFIED) &&
1704 (((device_spec_t *)spec1)->data.ctd->lun == ID_UNSPECIFIED)) {
1709 if ((((device_spec_t *)spec2)->data.ctd->lun != ID_UNSPECIFIED) &&
1710 (((device_spec_t *)spec1)->data.ctd->lun != ID_UNSPECIFIED)) {
1715 if ((((device_spec_t *)spec1)->data.ctd->target != ID_UNSPECIFIED) &&
1716 (((device_spec_t *)spec2)->data.ctd->target == ID_UNSPECIFIED)) {
1721 if ((((device_spec_t *)spec2)->data.ctd->target != ID_UNSPECIFIED) &&
1722 (((device_spec_t *)spec1)->data.ctd->target == ID_UNSPECIFIED)) {
1727 if ((((device_spec_t *)spec2)->data.ctd->target != ID_UNSPECIFIED) &&
1728 (((device_spec_t *)spec1)->data.ctd->target != ID_UNSPECIFIED)) {
2533 unavail_spec->data.ctd->ctrl,
2534 unavail_spec->data.ctd->target,
2535 unavail_spec->data.ctd->lun,
2536 unavail_spec->data.ctd->slice);
2538 if ((unavail_spec->data.ctd->ctrl != ID_UNSPECIFIED) &&
2539 (unavail_spec->data.ctd->target == ID_UNSPECIFIED) &&
2540 (unavail_spec->data.ctd->lun == ID_UNSPECIFIED) &&
2541 (unavail_spec->data.ctd->slice == ID_UNSPECIFIED)) {
2722 free(spec->data.ctd);
2944 (*spec)->data.ctd = (ctd_spec_t *)calloc(1, sizeof (ctd_spec_t));
2946 if ((*spec)->data.ctd == NULL) {
2950 (*spec)->data.ctd->slice = ID_UNSPECIFIED;
2951 (*spec)->data.ctd->lun = ID_UNSPECIFIED;
2952 (*spec)->data.ctd->target = ID_UNSPECIFIED;
2953 (*spec)->data.ctd->ctrl = ID_UNSPECIFIED;
2956 (*spec)->data.ctd->slice = slice;
2960 (*spec)->data.ctd->lun = lun;
2964 (*spec)->data.ctd->target = target;
2968 (*spec)->data.ctd->ctrl = ctrl;
2971 (*spec)->data.ctd->is_ide = is_ide;
3152 if (spec->data.ctd->is_ide) {
3156 if ((spec->data.ctd->ctrl != ID_UNSPECIFIED) &&
3157 (spec->data.ctd->lun != ID_UNSPECIFIED) &&
3158 (spec->data.ctd->slice != ID_UNSPECIFIED)) {
3160 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl) &&
3161 (spec->data.ctd->lun == device->data.ctd->lun) &&
3162 (spec->data.ctd->slice == device->data.ctd->slice);
3164 } else if ((spec->data.ctd->ctrl != ID_UNSPECIFIED) &&
3165 (spec->data.ctd->lun != ID_UNSPECIFIED)) {
3167 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl) &&
3168 (spec->data.ctd->lun == device->data.ctd->lun);
3170 } else if (spec->data.ctd->ctrl != ID_UNSPECIFIED) {
3172 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl);
3180 if ((spec->data.ctd->ctrl != ID_UNSPECIFIED) &&
3181 (spec->data.ctd->target != ID_UNSPECIFIED) &&
3182 (spec->data.ctd->lun != ID_UNSPECIFIED) &&
3183 (spec->data.ctd->slice != ID_UNSPECIFIED)) {
3185 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl) &&
3186 (spec->data.ctd->target == device->data.ctd->target) &&
3187 (spec->data.ctd->lun == device->data.ctd->lun) &&
3188 (spec->data.ctd->slice == device->data.ctd->slice);
3190 } else if ((spec->data.ctd->ctrl != ID_UNSPECIFIED) &&
3191 (spec->data.ctd->target != ID_UNSPECIFIED) &&
3192 (spec->data.ctd->lun != ID_UNSPECIFIED)) {
3194 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl) &&
3195 (spec->data.ctd->target == device->data.ctd->target) &&
3196 (spec->data.ctd->lun == device->data.ctd->lun);
3198 } else if ((spec->data.ctd->ctrl != ID_UNSPECIFIED) &&
3199 (spec->data.ctd->target != ID_UNSPECIFIED)) {
3201 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl) &&
3202 (spec->data.ctd->target == device->data.ctd->target);
3204 } else if (spec->data.ctd->ctrl != ID_UNSPECIFIED) {
3206 match = (spec->data.ctd->ctrl == device->data.ctd->ctrl);
3214 spec->data.ctd->ctrl, spec->data.ctd->target,
3215 spec->data.ctd->lun, spec->data.ctd->slice,
3217 device->data.ctd->ctrl, device->data.ctd->target,
3218 device->data.ctd->lun, device->data.ctd->slice);