Lines Matching refs:svc
17 struct gb_svc *svc;
32 gb_svc_watchdog_disable(watchdog->svc);
35 gb_svc_watchdog_enable(watchdog->svc);
66 struct gb_svc *svc;
70 svc = watchdog->svc;
72 dev_dbg(&svc->dev, "%s: ping.\n", __func__);
73 retval = gb_svc_ping(svc);
79 * tearing down the svc device itself. So queue up
82 dev_err(&svc->dev,
86 if (svc->action == GB_SVC_WATCHDOG_BITE_PANIC_KERNEL) {
88 } else if (svc->action == GB_SVC_WATCHDOG_BITE_RESET_UNIPRO) {
89 dev_err(&svc->dev, "Resetting the greybus network, watch out!!!\n");
107 int gb_svc_watchdog_create(struct gb_svc *svc)
112 if (svc->watchdog)
120 watchdog->svc = svc;
122 svc->watchdog = watchdog;
127 dev_err(&svc->dev, "error registering pm notifier(%d)\n",
132 retval = gb_svc_watchdog_enable(svc);
134 dev_err(&svc->dev, "error enabling watchdog (%d)\n", retval);
141 svc->watchdog = NULL;
147 void gb_svc_watchdog_destroy(struct gb_svc *svc)
149 struct gb_svc_watchdog *watchdog = svc->watchdog;
155 gb_svc_watchdog_disable(svc);
156 svc->watchdog = NULL;
160 bool gb_svc_watchdog_enabled(struct gb_svc *svc)
162 if (!svc || !svc->watchdog)
164 return svc->watchdog->enabled;
167 int gb_svc_watchdog_enable(struct gb_svc *svc)
171 if (!svc->watchdog)
174 watchdog = svc->watchdog;
183 int gb_svc_watchdog_disable(struct gb_svc *svc)
187 if (!svc->watchdog)
190 watchdog = svc->watchdog;