Lines Matching defs:self
2526 /* Interfaces for 'self' to set/get a child's flavor */
2541 * children of self.
2549 ndi_flavorv_alloc(dev_info_t *self, int nflavors)
2551 ASSERT(nflavors > 0 && (DEVI(self)->devi_flavorv == NULL ||
2552 nflavors == DEVI(self)->devi_flavorv_n));
2553 if (nflavors <= 1 || (DEVI(self)->devi_flavorv)) {
2556 DEVI(self)->devi_flavorv =
2558 DEVI(self)->devi_flavorv_n = nflavors;
2562 ndi_flavorv_set(dev_info_t *self, ndi_flavor_t child_flavor, void *v)
2565 ddi_set_driver_private(self, v);
2567 ASSERT(child_flavor < DEVI(self)->devi_flavorv_n &&
2568 DEVI(self)->devi_flavorv != NULL);
2569 if (child_flavor > DEVI(self)->devi_flavorv_n ||
2570 DEVI(self)->devi_flavorv == NULL) {
2573 DEVI(self)->devi_flavorv[child_flavor - 1] = v;
2578 ndi_flavorv_get(dev_info_t *self, ndi_flavor_t child_flavor)
2581 return (ddi_get_driver_private(self));
2583 ASSERT(child_flavor < DEVI(self)->devi_flavorv_n &&
2584 DEVI(self)->devi_flavorv != NULL);
2585 if (child_flavor > DEVI(self)->devi_flavorv_n ||
2586 DEVI(self)->devi_flavorv == NULL) {
2589 return (DEVI(self)->devi_flavorv[child_flavor - 1]);