Lines Matching defs:keeper
1828 pm_unsatisfy(char *keeper, char *kept)
1833 PMD(PMD_KEEPS, ("%s: keeper=%s, kept=%s\n", pmf, keeper, kept))
1836 if (strcmp(dp->pdr_keeper, keeper) == 0 &&
1857 pm_unkeeps(int count, char *keeper, char **keptpaths, int pwr)
1866 PMD(PMD_KEEPS, ("%s: count=%d, keeper=%s, keptpaths=%p\n", pmf, count,
1867 keeper, (void *)keptpaths))
1869 * Try to grab keeper. Keeper may have gone away by now,
1872 dip = pm_name_to_dip(keeper, 1);
1913 pm_unsatisfy(keeper, keptpaths[i]);
1920 * Device kept is being un power managed, it is kept up by keeper.
1924 pm_unkepts(char *kept, char *keeper)
1927 PMD(PMD_KEEPS, ("%s: kept=%s, keeper=%s\n", pmf, kept, keeper))
1928 ASSERT(keeper != NULL);
1932 pm_unsatisfy(keeper, kept);
1937 * path of a keeper.
2035 * First assume we are a keeper and remove all our kepts.
2227 pm_dispatch_to_dep_thread(int cmd, char *keeper, char *kept, int wait,
2239 if (keeper != NULL) {
2240 new_work->pdw_keeper = kmem_zalloc(strlen(keeper) + 1,
2242 (void) strcpy(new_work->pdw_keeper, keeper);
3767 bring_wekeeps_up(char *keeper)
3780 * We process the request even if the keeper detaches because
3783 PMD(PMD_BRING, ("%s: keeper= %s\n", pmf, keeper))
3785 if (strcmp(dp->pdr_keeper, keeper) != 0)
3839 /* if we got here the keeper had a transition from OFF->ON */
5116 * keeper -> kept list for simplification. At this point We do not
5125 pm_record_keeper(char *kept, char *keeper, int isprop)
5130 PMD(PMD_KEEPS, ("%s: %s, %s\n", pmf, kept, keeper))
5131 ASSERT(kept && keeper);
5141 strcmp(keeper, pdr->pdr_keeper) == 0) {
5149 npdr = newpdr(kept, keeper, isprop);
5196 pm_set_keeping(dev_info_t *keeper, dev_info_t *kept)
5203 PMD(PMD_KEEPS, ("%s: keeper=%s@%s(%s#%d), kept=%s@%s(%s#%d)\n", pmf,
5204 PM_DEVICE(keeper), PM_DEVICE(kept)))
5209 ASSERT(keeper != kept);
5210 if (PM_GET_PM_INFO(keeper) == NULL) {
5213 PM_DEVICE(keeper), PM_DEVICE(kept));
5214 PMD((PMD_FAIL | PMD_KEEPS), ("%s: keeper %s@%s(%s#%d) is not"
5215 "power managed\n", pmf, PM_DEVICE(keeper)))
5220 PM_LOCK_POWER(keeper, &circ);
5221 for (j = 0; j < PM_NUMCMPTS(keeper); j++) {
5222 if (PM_CURPOWER(keeper, j)) {
5233 PM_UNLOCK_POWER(keeper, circ);
5250 pm_keeper(char *keeper)
5252 PMD_FUNC(pmf, "keeper")
5262 ASSERT(keeper != NULL);
5263 dip = pm_name_to_dip(keeper, 1);
5266 PMD(PMD_KEEPS, ("%s: keeper=%s\n", pmf, keeper))
5271 PMD(PMD_KEEPS, ("%s: keeper %s\n", pmf, dp->pdr_keeper))
5276 if (strcmp(dp->pdr_keeper, keeper) == 0) {
5280 if (strcmp(dp->pdr_keeper, keeper) != 0)
5290 PMD(PMD_KEEPS, ("%s: keeper=%s@%s(%s#%d), "
5309 * PM_ADD_DEPENDENT_PROPERTY ioctls. Record down on the keeper's
5319 dev_info_t *keeper;
5341 keeper = pm_name_to_dip(dp->pdr_keeper, 1);
5342 if (keeper == NULL)
5375 ddi_release_devi(keeper);
5401 if (keeper) {
5402 ret += pm_set_keeping(keeper, kept);
5403 ddi_release_devi(keeper);
5442 * keeper is already known to be the device that keeps up the other (kept) one.
5447 pm_apply_recorded_dep(dev_info_t *keeper, pm_pdr_t *dp)
5467 PMD(PMD_KEEPS, ("%s: keeper=%s, kept=%s\n", pmf,
5469 if (pm_set_keeping(keeper, kept)) {
6028 pm_log("%p: %s keeper %s, kept %s, kept count %d, next %p\n",
6315 return ("keeper");
6331 pm_rele_dep(char *keeper)
6340 if (strcmp(dp->pdr_keeper, keeper) != 0)
6349 "of keeper=%s\n", pmf, PM_DEVICE(kept),
6350 keeper))
6361 * if our keeper is up since dependency is not honored while a kept
6369 dev_info_t *keeper;
6384 keeper = pm_name_to_dip(dp->pdr_keeper, 1);
6385 if (keeper) {
6386 PMD(PMD_KEEPS, ("%s: keeper=%s@%s(%s#%d)\n",
6387 pmf, PM_DEVICE(keeper)))
6388 PM_LOCK_POWER(keeper, &circ);
6389 for (j = 0; j < PM_NUMCMPTS(keeper);
6391 if (PM_CURPOWER(keeper, j)) {
6403 PM_UNLOCK_POWER(keeper, circ);
6404 ddi_release_devi(keeper);
6419 PMD(PMD_DEP, ("%s: keeper=%s, kept=%s\n", pmf,